get Security Balance
fun getSecurityBalance(book: AccountBook, security: CurrencyType, excludeInactiveAccounts: Boolean = false, asOfDate: Int? = null): Long
Get the balance / security holding (quantity) for the given security (currency). Optionally specify the asof date (default = today/balance). This will iterate all security accounts for the given security and total the security holdings...
Author
Stuart Beesley - June 2024
Since
MD2024.2(5140)
Return
the total security holding (quantity)
Parameters
security
the security (currency) to calculate the total balance
exclude Inactive Accounts
optionally - when iterating, ignore inactive security accounts (default false)
as Of Date
optionally - get the balance asof the specified date (default = today/balance)